<table id="events" class="data">
  <thead>
    <tr>
      <th class="name first" colspan="2">
        <div class="dividers">
          <a href="">会议名称</a>
        </div>
      </th>
      <th>
        <div class="dividers">
          <a href="">会议时间</a>
        </div>
      </th>
      <th>
        <div class="dividers">
          <a href="">天数</a>
        </div>
      </th>
      <th>
        <div class="dividers">
          <a href="">地点</a>
        </div>
      </th>
      <th class="block_status last" colspan="2">操作</th>
    </tr>
  </thead>
  <tbody id="event_list">
    <% @events.each do |event| %>
      <%=render :partial=>'event_item',:locals=>{:event=>event}%>
      <tr id="edit_place_<%=event.id%>"/>
    <% end %>
  </tbody>
</table>
<br/>
<div style="float:right">
    <%= will_paginate @events,
      :inner_window => 1,
      :outer_window => 1,
      :prev_label => '上一页',
      :next_label => '下一页'
    %>
</div>
<br/>
<br/>
<div style="float:right">
  <a href="#" onclick="Element.toggle('add_event');return false">创建会议</a>
</div>
<br/>
<br/>
<%=render :partial=>'new_event_form'%>